package bai4;

import java.util.ArrayList;
import java.util.Scanner;

public class Lop {
	private int maLop;
	private String tenLop;
	private int siSo;
	public Lop(){

	}
	public Lop(int maLop, String tenLop, int siSo) {
		this.maLop = maLop;
		this.tenLop = tenLop;
		this.siSo = siSo;
	}
	public int getMaLop() {
		return maLop;
	}
	public void setMaLop(int maLop) {
		this.maLop = maLop;
	}
	public String getTenLop() {
		return tenLop;
	}
	public void setTenLop(String tenLop) {
		this.tenLop = tenLop;
	}
	public int getSiSo() {
		return siSo;
	}
	public void setSiSo(int siSo) {
		this.siSo = siSo;
	}
	public Lop inputLop(){
		Scanner sc=new Scanner(System.in);
		System.out.println("Nhap so lop can them: ");
		int n=Integer.parseInt(sc.nextLine());
//		for(int j=1;j<=n;j++){
			System.out.println("Nhap ma lop: ");
			maLop=Integer.parseInt(sc.nextLine());
			System.out.println("Nhap ten lop: ");
			tenLop=sc.nextLine();
			System.out.println("Nhap si so");
			siSo=Integer.parseInt(sc.nextLine());
			Lop lop=new Lop(maLop,tenLop,siSo);
//			ArrayList<Lop> arrlop=new ArrayList<Lop>();
//			arrlop.add(lop);
				
//			}
			return lop;
		}
		
	
	}

